<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../public/js/vue.js"></script>
</head>
<body>
  <!-- 注释详情看HelloVue -->
  <div id="app">
    <ul>
      <li v-for="item in movies">{{item}}</li>  <!-- 使用v-for遍历数组动态生成li便签 -->
    </ul>
  </div>
  <script>
    const app = new Vue({
      el: "#app",
      data() {
        return {
          movies:["孔小飘","孔堆堆","泡泡"]
        }
      }
    })
  </script>
</body>
</html>